{if !isset($smarty.session.cf_uid)}
	{$UI->message("You need administrative permissions to access the Creative Framework Administration Control Panel.", "warning", true)}
{else}
	{$UI->message("You are currently logged in. Confirm your password.", "success", true)}
{/if}
<form action='{$smarty.const.WEB_PATH}/admin.php?app=global&amp;controller=login' method='post'>
	<fieldset>
		{if !isset($smarty.session.cf_uid)}
			<label for="username">{$Lang->getFormattedKey("global.user.loginname")}</label>
				<input type='text' name='username' id='username' tabindex='1' />
		{else}
			<p>
				Logged in as {$userop.display} ({$userop.username})
			</p>
			<input type='hidden' name='username' value='{$userop.username}' />
		{/if}
		<label for="password">{$Lang->getFormattedKey("global.user.password")}</label>
			<input type='password' name='password' id='password' tabindex='2' />
	</fieldset>
		<button type="submit" class="zurb green small" tabindex="3">
			Log in
		</button>
		<a class="zurb red small" href="{$smarty.const.WEB_PATH}" tabindex="4">
			Go back
		</a>
</form>
